package chapter_03_factory.p2_factoryMethod;

import chapter_03_factory.p2_factoryMethod.factory.FactoryAA;
import chapter_03_factory.p2_factoryMethod.factory.FactoryBB;
import chapter_03_factory.p2_factoryMethod.factory.IFactory;
import chapter_03_factory.p2_factoryMethod.product.IProduct;

/**
 * Created by CharloYao on 2017/3/17.
 * 客户端；
 *
 */
public class Client {
    public static void main(String[] args) {
        IFactory factoryAA = new FactoryAA();
        IProduct productAA = factoryAA.getProduct();

        IFactory factoryBB = new FactoryBB();
        IProduct productBB = factoryBB.getProduct();
    }
}
